package com.flower.mapper;

import com.flower.model.dto.ManagePageQueryDto;
import com.flower.model.dto.UserDto;
import com.flower.model.dto.UserPasswordDTO;
import com.flower.model.entity.Admin;
import com.github.pagehelper.Page;
import com.flower.model.entity.Manager ;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@SuppressWarnings("all")
/**
 *@ClassName ManagerMapper
 *@Description TODO
 *@Author @O_o  GW__
 *@Date 2025/6/12 16:13
 *@Version 1.0
 */
@Mapper
public interface ManagerMapper {
    Page<Admin> pageQuery(ManagePageQueryDto managePageQueryDto);

    void updateAdmin(UserDto userDto);

    void updateEnableById(UserDto userDto);

    void deleteManagerById(Integer adid);

    Manager selectByAdname(String adname);

    void update(Manager manager);

    void updatePwd(UserPasswordDTO userPasswordDTO);

    Manager getManagerById(String adname);

}
